<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>提交问题</title>
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
	$("#quest_button").click(function() {
		addQuest();
	});
});
	function addQuest() {
		var url = "addQuest";
		var quest=$("#quest").value;
		$.getJSON(url, {quest:quest}, function callback(data) {
			alert(data);
		});
	}
</script>
</head>

<body>
	<div>

		<form id="theQuest">
			<textarea id="quest" rows="5" cols=""></textarea>
			<input type="button" id="quest_button" value='Quest' />
		</form>

	</div>
</body>
</html>